<%--
  Created by IntelliJ IDEA.
  User: CXYZF
  Date: 2024/10/10
  Time: 21:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%request.setCharacterEncoding("GBK");%>
<jsp:useBean id="ps" class="com.example.chapter5.person" scope="page"/>
<jsp:setProperty name="ps" property="name" value="手动设置的姓名"/>
<jsp:setProperty name="ps" property="sex" value="女"/>
<jsp:setProperty name="ps" property="age" value="22"/>
姓名:
<jsp:getProperty name="ps" property="name"/>
<BR>
性别:
<jsp:getProperty name="ps" property="sex"/>
<BR>
年龄:
<jsp:getProperty name="ps" property="age"/>
<BR>
</body>
</html>
